#include <iostream>
#include <cstring>
#include <iomanip>
using namespace std;
class exam
{
	private:
		char correct[21];
		char answer[20];
		bool right[20];
		int score; 
	public:
		exam()
		{
			strcpy(correct,"BDAACABACDBCDADCCBDA");
			score=0;
		}
		void getans()
		{
			int i;
			for(i=0;i<=19;i++)
			{
				cin>>answer[i];
				if(answer[i]!='A'&&answer[i]!='B'&&answer[i]!='C'&&answer[i]!='D')
				{
					cout<<"Wrong Input"<<endl;
					i--;
				}
			}
		}
		void pass()
		{
			int i;
			for(i=0;i<=19;i++)
				if(answer[i]==correct[i])
				{
					right[i]=true;
					score++;
				}
			if(score>=12)
				cout<<"Passed"<<endl;
			else
				cout<<"Unpassed"<<endl;
		}
		void getwrong()
		{
			int i;
			cout<<score<<endl;
			cout<<"Here are the "<<20-score<<" questions which is wrong:"<<endl;
			for(i=0;i<=19;i++)
				if(!right[i])
					cout<<i+1<<" ";
		}
};
int main()
{
	exam student;
	student.getans();
	student.pass();	
	student.getwrong();
	return 0;
}
